package com.sakiko.aspects_01;

import org.springframework.stereotype.Component;

@Component
public class TxAspect {

    public void beginTransaction() {
        System.out.println("开启事务");
    }

    public void commitTransaction(Object resulttt) {
        System.out.println("提交事务");
    }

    public void rollbackTransaction(Throwable exxx) {
        System.out.println("回滚事务" + exxx.getMessage());
    }
}
